import request from '../utils/request'

// 获取新歌速递 0-全部 7-华语 96-欧美 8-日本 16-韩国
export const getNewSongs = (type) => {
  return request({
    url: `/top/song?type=${type}`,
    method: 'GET',
  })
}

// 推荐歌曲
export const getRemSong = (limit) => {
  return request({
    url: `/personalized/newsong?limit=${limit}`,
    method: 'get'
  })
}

export const getSongUrlV1 = (songId , level) => {
  return request({
    url: `/song/url/v1?id=${songId}&level=${level}`,
    method: 'get'
  })
}

export const getSongUrl = (songId) => {
  return request({
    url: `/song/url?id=${songId}`,
    method: 'get'
  })
}
